
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
 <script type="text/javascript">
 
 
 
 var codesite_token = "c608b743be1bb62f4e0fcd50f784d0a9";
 
 
 userProfileUrl = '/u/seth.viebrock/';
 
 </script>
 <title>
 passwdcrack -
 
 Google Code</title>
 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" >
 
 <link type="text/css" rel="stylesheet" href="http://www.gstatic.com/codesite/ph/8517283022148688843/css/d_20081117.css">
 
 <link type="text/css" rel="stylesheet" href="http://www.gstatic.com/codesite/ph/8517283022148688843/css/d_sb_20080522.css" >
 
 
 
<!--[if IE]>
 <link type="text/css" rel="stylesheet" href="http://www.gstatic.com/codesite/ph/8517283022148688843/css/d_ie.css" >
<![endif]-->
</head>
<body class="t4">
 <div id="gaia">
 
 <span>
 
 <b>seth.viebrock@gmail.com</b>
 
 | <a href="/p/support/wiki/WhatsNew" style="color:#a03">What's new?</a>
 | <a href="/u/seth.viebrock/">Profile</a>
 
 | <a href="/u/seth.viebrock/" id="projects-dropdown" onclick="return false;">My projects</a>
 
 | <a href="/hosting/settings">Settings</a>
 | <a href="/p/support/">Help</a>
 | <a href="http://www.google.com/accounts/Logout?continue=http%3A%2F%2Fcode.google.com%2Fp%2Fpasswdcrack%2Fsource%2Fbrowse%2Ftrunk%2Ftest%2Ftest_script.pl%3Fr%3D2">Sign out</a>
 
 </span>

 </div>
 <div class="gbh" style="left: 0pt;"></div>
 <div class="gbh" style="right: 0pt;"></div>
 
 
 <div style="height: 1px"></div>
 <table style="padding:0px; margin: 20px 0px 0px 0px; width:100%" cellpadding="0" cellspacing="0">
 <tr>
 <td style="width:153px; text-align:center;">
 <a href="/">
 
 <img src="http://www.gstatic.com/codesite/ph/images/code_sm.png"
 width="153" height="55" alt="Google">
 
 </a>
 </td>
 <td style="padding-left: 0.8em">
 
 <div id="pname" style="margin: 0px 0px -3px 0px">
 <a href="/p/passwdcrack/" style="text-decoration:none; color:#000">passwdcrack</a>
 </div>
 <div id="psum">
 <i><a id="project_summary_link" href="/p/passwdcrack/" style="text-decoration:none; color:#000">REST based password cracking service</a></i>
 </div>
 
 </td>
 <td style="white-space:nowrap; text-align:right">
 
 <form action="/hosting/search">
 <input size="30" name="q" value="">
 <input type="submit" name="projectsearch" value="Search Projects" >
 </form>
 
 </tr>
 </table>


<table id="mt" cellspacing="0" cellpadding="0" width="100%" border="0">
 <tr>
 <th onclick="if (!cancelBubble) _go('/p/passwdcrack/');">
 <div class="tab inactive">
 <div class="round4"></div>
 <div class="round2"></div>
 <div class="round1"></div>
 <div class="box-inner">
 <a onclick="cancelBubble=true;" href="/p/passwdcrack/">Project&nbsp;Home</a>
 </div>
 </div>
 </th><td>&nbsp;&nbsp;</td>
 
 
 
 
 <th onclick="if (!cancelBubble) _go('/p/passwdcrack/downloads/list');">
 <div class="tab inactive">
 <div class="round4"></div>
 <div class="round2"></div>
 <div class="round1"></div>
 <div class="box-inner">
 <a onclick="cancelBubble=true;" href="/p/passwdcrack/downloads/list">Downloads</a>
 </div>
 </div>
 </th><td>&nbsp;&nbsp;</td>
 
 
 
 
 
 <th onclick="if (!cancelBubble) _go('/p/passwdcrack/w/list');">
 <div class="tab inactive">
 <div class="round4"></div>
 <div class="round2"></div>
 <div class="round1"></div>
 <div class="box-inner">
 <a onclick="cancelBubble=true;" href="/p/passwdcrack/w/list">Wiki</a>
 </div>
 </div>
 </th><td>&nbsp;&nbsp;</td>
 
 
 
 
 
 <th onclick="if (!cancelBubble) _go('/p/passwdcrack/issues/list');">
 <div class="tab inactive">
 <div class="round4"></div>
 <div class="round2"></div>
 <div class="round1"></div>
 <div class="box-inner">
 <a onclick="cancelBubble=true;" href="/p/passwdcrack/issues/list">Issues</a>
 </div>
 </div>
 </th><td>&nbsp;&nbsp;</td>
 
 
 
 
 
 <th onclick="if (!cancelBubble) _go('/p/passwdcrack/source/checkout');">
 <div class="tab active">
 <div class="round4"></div>
 <div class="round2"></div>
 <div class="round1"></div>
 <div class="box-inner">
 <a onclick="cancelBubble=true;" href="/p/passwdcrack/source/checkout">Source</a>
 </div>
 </div>
 </th><td>&nbsp;&nbsp;</td>
 
 
 <td width="100%">&nbsp;</td>
 </tr>
</table>
<table cellspacing="0" cellpadding="0" width="100%" align="center" border="0" class="st">
 <tr>
 
 
 
 
 
 
 <td>
 
<div class="st2">
 <div class="isf">
 <span class="inst1"><a href="/p/passwdcrack/source/checkout">Checkout</a></span> |
 <span class="inst2"><a href="/p/passwdcrack/source/browse/">Browse</a></span> |
 <span class="inst3"><a href="/p/passwdcrack/source/list">Changes</a></span> |
 <form action="http://www.google.com/codesearch" method="get" style="display:inline"
 onsubmit="document.getElementById('codesearchq').value = document.getElementById('origq').value + ' package:http://passwdcrack\\.googlecode\\.com'">
 <input type="hidden" name="q" id="codesearchq" value="">
 <input maxlength="2048" size="35" id="origq" name="origq" value="" title="Google Code Search" style="font-size:92%">&nbsp;<input type="submit" value="Search Trunk" name="btnG" style="font-size:92%">
  |
 <a href="/p/passwdcrack/issues/entry?show=review&former=sourcelist">Request Code Review</a>
 
 </form>
 </div>
</div>


 </td>
 
 
 
 
 
 <td height="4" align="right" valign="top" class="bevel-right">
 <div class="round4"></div>
 <div class="round2"></div>
 <div class="round1"></div>
 </td>
 </tr>
</table>
<script type="text/javascript">
 var cancelBubble = false;
 function _go(url) { document.location = url; }
</script>

<div id="maincol">
<!-- IE -->



<div class="expand">


<style type="text/css">
 #file_flipper { display: inline; float: right; white-space: nowrap; }
 #file_flipper.hidden { display: none; }
 #file_flipper .pagelink { color: #0000CC; text-decoration: underline; }
 #file_flipper #visiblefiles { padding-left: 0.5em; padding-right: 0.5em; }
</style>
<div id="nav_and_rev" class="heading">
 <div class="round4"></div>
 <div class="round2"></div>
 <div class="round1"></div>
 <div class="box-inner">
 <div class="">
 <div class="src_crumbs src_nav">
 <strong class="src_nav">Source Path:&nbsp;</strong>
 <span id="crumb_root">
 
 <a href="/p/passwdcrack/source/browse/?r=2">svn</a>/&nbsp;</span>
 <span id="crumb_links" class="ifClosed"><a href="/p/passwdcrack/source/browse/trunk/?r=2">trunk</a><span class="sp">/&nbsp;</span><a href="/p/passwdcrack/source/browse/trunk/test/?r=2">test</a><span class="sp">/&nbsp;</span>test_script.pl</span>
 
 </div>
 
 </div>
 
 <div class="pagination" style="margin-left: 2em">
 
 <b>r2</b>
 
 </div>
 
 
 <div style="clear:both"></div>
 </div>
</div>

<style type="text/css">
 
 #nums td:target a {color:black; font-weight:bold}
 
  tr.inline_comment {
 background: #fff;
 vertical-align: top;
 }
 div.draft, div.published {
 padding: .3em;
 border: 1px solid #999; 
 margin-bottom: .1em;
 font-family: arial, sans-serif;
 max-width: 60em;
 }
 div.draft {
 background: #ffa;
 } 
 div.published {
 background: #e5ecf9;
 }
 div.published .body, div.draft .body {
 padding: .5em .1em .1em .1em;
 max-width: 60em;
 white-space: pre-wrap;
 white-space: -moz-pre-wrap;
 white-space: -pre-wrap;
 white-space: -o-pre-wrap;
 word-wrap: break-word;
 }
 div.draft .actions {
 margin-left: 1em;
 font-size: 90%;
 }
 div.draft form {
 padding: .5em .5em .5em 0;
 }
 div.draft textarea, div.published textarea {
 width: 95%;
 height: 10em;
 font-family: arial, sans-serif;
 margin-bottom: .5em;
 }

</style>
<div class="fc">
 


<table class="opened" id="review_comment_area"><tr>
<td id="nums">
<pre><table width="100%"><tr class="nocursor"><td></td></tr></table></pre>

<pre><table><tr id="gr_svn2_1"><td id="1"><a href="#1">1</a></td></tr
><tr id="gr_svn2_2"><td id="2"><a href="#2">2</a></td></tr
><tr id="gr_svn2_3"><td id="3"><a href="#3">3</a></td></tr
><tr id="gr_svn2_4"><td id="4"><a href="#4">4</a></td></tr
><tr id="gr_svn2_5"><td id="5"><a href="#5">5</a></td></tr
><tr id="gr_svn2_6"><td id="6"><a href="#6">6</a></td></tr
><tr id="gr_svn2_7"><td id="7"><a href="#7">7</a></td></tr
><tr id="gr_svn2_8"><td id="8"><a href="#8">8</a></td></tr
><tr id="gr_svn2_9"><td id="9"><a href="#9">9</a></td></tr
><tr id="gr_svn2_10"><td id="10"><a href="#10">10</a></td></tr
><tr id="gr_svn2_11"><td id="11"><a href="#11">11</a></td></tr
><tr id="gr_svn2_12"><td id="12"><a href="#12">12</a></td></tr
><tr id="gr_svn2_13"><td id="13"><a href="#13">13</a></td></tr
><tr id="gr_svn2_14"><td id="14"><a href="#14">14</a></td></tr
><tr id="gr_svn2_15"><td id="15"><a href="#15">15</a></td></tr
><tr id="gr_svn2_16"><td id="16"><a href="#16">16</a></td></tr
><tr id="gr_svn2_17"><td id="17"><a href="#17">17</a></td></tr
><tr id="gr_svn2_18"><td id="18"><a href="#18">18</a></td></tr
><tr id="gr_svn2_19"><td id="19"><a href="#19">19</a></td></tr
><tr id="gr_svn2_20"><td id="20"><a href="#20">20</a></td></tr
><tr id="gr_svn2_21"><td id="21"><a href="#21">21</a></td></tr
><tr id="gr_svn2_22"><td id="22"><a href="#22">22</a></td></tr
><tr id="gr_svn2_23"><td id="23"><a href="#23">23</a></td></tr
><tr id="gr_svn2_24"><td id="24"><a href="#24">24</a></td></tr
><tr id="gr_svn2_25"><td id="25"><a href="#25">25</a></td></tr
><tr id="gr_svn2_26"><td id="26"><a href="#26">26</a></td></tr
><tr id="gr_svn2_27"><td id="27"><a href="#27">27</a></td></tr
><tr id="gr_svn2_28"><td id="28"><a href="#28">28</a></td></tr
><tr id="gr_svn2_29"><td id="29"><a href="#29">29</a></td></tr
><tr id="gr_svn2_30"><td id="30"><a href="#30">30</a></td></tr
><tr id="gr_svn2_31"><td id="31"><a href="#31">31</a></td></tr
><tr id="gr_svn2_32"><td id="32"><a href="#32">32</a></td></tr
><tr id="gr_svn2_33"><td id="33"><a href="#33">33</a></td></tr
><tr id="gr_svn2_34"><td id="34"><a href="#34">34</a></td></tr
><tr id="gr_svn2_35"><td id="35"><a href="#35">35</a></td></tr
><tr id="gr_svn2_36"><td id="36"><a href="#36">36</a></td></tr
><tr id="gr_svn2_37"><td id="37"><a href="#37">37</a></td></tr
><tr id="gr_svn2_38"><td id="38"><a href="#38">38</a></td></tr
><tr id="gr_svn2_39"><td id="39"><a href="#39">39</a></td></tr
><tr id="gr_svn2_40"><td id="40"><a href="#40">40</a></td></tr
><tr id="gr_svn2_41"><td id="41"><a href="#41">41</a></td></tr
><tr id="gr_svn2_42"><td id="42"><a href="#42">42</a></td></tr
><tr id="gr_svn2_43"><td id="43"><a href="#43">43</a></td></tr
><tr id="gr_svn2_44"><td id="44"><a href="#44">44</a></td></tr
><tr id="gr_svn2_45"><td id="45"><a href="#45">45</a></td></tr
><tr id="gr_svn2_46"><td id="46"><a href="#46">46</a></td></tr
><tr id="gr_svn2_47"><td id="47"><a href="#47">47</a></td></tr
><tr id="gr_svn2_48"><td id="48"><a href="#48">48</a></td></tr
><tr id="gr_svn2_49"><td id="49"><a href="#49">49</a></td></tr
><tr id="gr_svn2_50"><td id="50"><a href="#50">50</a></td></tr
><tr id="gr_svn2_51"><td id="51"><a href="#51">51</a></td></tr
><tr id="gr_svn2_52"><td id="52"><a href="#52">52</a></td></tr
><tr id="gr_svn2_53"><td id="53"><a href="#53">53</a></td></tr
><tr id="gr_svn2_54"><td id="54"><a href="#54">54</a></td></tr
><tr id="gr_svn2_55"><td id="55"><a href="#55">55</a></td></tr
><tr id="gr_svn2_56"><td id="56"><a href="#56">56</a></td></tr
><tr id="gr_svn2_57"><td id="57"><a href="#57">57</a></td></tr
><tr id="gr_svn2_58"><td id="58"><a href="#58">58</a></td></tr
><tr id="gr_svn2_59"><td id="59"><a href="#59">59</a></td></tr
><tr id="gr_svn2_60"><td id="60"><a href="#60">60</a></td></tr
><tr id="gr_svn2_61"><td id="61"><a href="#61">61</a></td></tr
><tr id="gr_svn2_62"><td id="62"><a href="#62">62</a></td></tr
><tr id="gr_svn2_63"><td id="63"><a href="#63">63</a></td></tr
><tr id="gr_svn2_64"><td id="64"><a href="#64">64</a></td></tr
><tr id="gr_svn2_65"><td id="65"><a href="#65">65</a></td></tr
><tr id="gr_svn2_66"><td id="66"><a href="#66">66</a></td></tr
><tr id="gr_svn2_67"><td id="67"><a href="#67">67</a></td></tr
><tr id="gr_svn2_68"><td id="68"><a href="#68">68</a></td></tr
><tr id="gr_svn2_69"><td id="69"><a href="#69">69</a></td></tr
><tr id="gr_svn2_70"><td id="70"><a href="#70">70</a></td></tr
><tr id="gr_svn2_71"><td id="71"><a href="#71">71</a></td></tr
><tr id="gr_svn2_72"><td id="72"><a href="#72">72</a></td></tr
><tr id="gr_svn2_73"><td id="73"><a href="#73">73</a></td></tr
><tr id="gr_svn2_74"><td id="74"><a href="#74">74</a></td></tr
><tr id="gr_svn2_75"><td id="75"><a href="#75">75</a></td></tr
><tr id="gr_svn2_76"><td id="76"><a href="#76">76</a></td></tr
><tr id="gr_svn2_77"><td id="77"><a href="#77">77</a></td></tr
><tr id="gr_svn2_78"><td id="78"><a href="#78">78</a></td></tr
><tr id="gr_svn2_79"><td id="79"><a href="#79">79</a></td></tr
><tr id="gr_svn2_80"><td id="80"><a href="#80">80</a></td></tr
><tr id="gr_svn2_81"><td id="81"><a href="#81">81</a></td></tr
><tr id="gr_svn2_82"><td id="82"><a href="#82">82</a></td></tr
><tr id="gr_svn2_83"><td id="83"><a href="#83">83</a></td></tr
><tr id="gr_svn2_84"><td id="84"><a href="#84">84</a></td></tr
><tr id="gr_svn2_85"><td id="85"><a href="#85">85</a></td></tr
><tr id="gr_svn2_86"><td id="86"><a href="#86">86</a></td></tr
><tr id="gr_svn2_87"><td id="87"><a href="#87">87</a></td></tr
><tr id="gr_svn2_88"><td id="88"><a href="#88">88</a></td></tr
><tr id="gr_svn2_89"><td id="89"><a href="#89">89</a></td></tr
><tr id="gr_svn2_90"><td id="90"><a href="#90">90</a></td></tr
><tr id="gr_svn2_91"><td id="91"><a href="#91">91</a></td></tr
><tr id="gr_svn2_92"><td id="92"><a href="#92">92</a></td></tr
><tr id="gr_svn2_93"><td id="93"><a href="#93">93</a></td></tr
><tr id="gr_svn2_94"><td id="94"><a href="#94">94</a></td></tr
><tr id="gr_svn2_95"><td id="95"><a href="#95">95</a></td></tr
><tr id="gr_svn2_96"><td id="96"><a href="#96">96</a></td></tr
><tr id="gr_svn2_97"><td id="97"><a href="#97">97</a></td></tr
><tr id="gr_svn2_98"><td id="98"><a href="#98">98</a></td></tr
><tr id="gr_svn2_99"><td id="99"><a href="#99">99</a></td></tr
><tr id="gr_svn2_100"><td id="100"><a href="#100">100</a></td></tr
><tr id="gr_svn2_101"><td id="101"><a href="#101">101</a></td></tr
><tr id="gr_svn2_102"><td id="102"><a href="#102">102</a></td></tr
><tr id="gr_svn2_103"><td id="103"><a href="#103">103</a></td></tr
><tr id="gr_svn2_104"><td id="104"><a href="#104">104</a></td></tr
><tr id="gr_svn2_105"><td id="105"><a href="#105">105</a></td></tr
><tr id="gr_svn2_106"><td id="106"><a href="#106">106</a></td></tr
><tr id="gr_svn2_107"><td id="107"><a href="#107">107</a></td></tr
><tr id="gr_svn2_108"><td id="108"><a href="#108">108</a></td></tr
><tr id="gr_svn2_109"><td id="109"><a href="#109">109</a></td></tr
><tr id="gr_svn2_110"><td id="110"><a href="#110">110</a></td></tr
><tr id="gr_svn2_111"><td id="111"><a href="#111">111</a></td></tr
><tr id="gr_svn2_112"><td id="112"><a href="#112">112</a></td></tr
><tr id="gr_svn2_113"><td id="113"><a href="#113">113</a></td></tr
></table></pre>

<pre><table width="100%"><tr class="nocursor"><td></td></tr></table></pre>
</td>
<td id="lines">
<pre class="prettyprint"><table width="100%"><tr class="cursor_hidden"><td></td></tr></table></pre>

<pre class="prettyprint lang-pl"><table><tr
id=sl_svn2_1><td>#!/usr/bin/perl -w<br></td></tr
><tr
id=sl_svn2_2><td>use strict;<br></td></tr
><tr
id=sl_svn2_3><td>use LWP::Simple;<br></td></tr
><tr
id=sl_svn2_4><td><br></td></tr
><tr
id=sl_svn2_5><td>BEGIN {<br></td></tr
><tr
id=sl_svn2_6><td>    #Set up tempfile creation:<br></td></tr
><tr
id=sl_svn2_7><td>    use File::Temp qw/ tempfile tempdir /;<br></td></tr
><tr
id=sl_svn2_8><td>    my $newlevel = File::Temp-&gt;safe_level( File::Temp::HIGH );#Set a high safety level<br></td></tr
><tr
id=sl_svn2_9><td>    die &quot;Could not change to high security in File.pm&quot;<br></td></tr
><tr
id=sl_svn2_10><td>        if $newlevel != File::Temp::HIGH;    <br></td></tr
><tr
id=sl_svn2_11><td>}<br></td></tr
><tr
id=sl_svn2_12><td><br></td></tr
><tr
id=sl_svn2_13><td>use strict;<br></td></tr
><tr
id=sl_svn2_14><td>use warnings;<br></td></tr
><tr
id=sl_svn2_15><td><br></td></tr
><tr
id=sl_svn2_16><td>use Data::Dumper;<br></td></tr
><tr
id=sl_svn2_17><td>use XML::Twig;<br></td></tr
><tr
id=sl_svn2_18><td>use MIME::Base64;<br></td></tr
><tr
id=sl_svn2_19><td>use HTML::Entities;<br></td></tr
><tr
id=sl_svn2_20><td>use LWP::UserAgent;<br></td></tr
><tr
id=sl_svn2_21><td>use Time::HiRes qw( usleep ualarm gettimeofday tv_interval nanosleep );<br></td></tr
><tr
id=sl_svn2_22><td><br></td></tr
><tr
id=sl_svn2_23><td>my @lines = &lt;&gt;;<br></td></tr
><tr
id=sl_svn2_24><td>our $i=0;<br></td></tr
><tr
id=sl_svn2_25><td><br></td></tr
><tr
id=sl_svn2_26><td>foreach my $line (@lines){<br></td></tr
><tr
id=sl_svn2_27><td>    $line = _urlsafe_b64encode($line);#MIME::Base64::URLSafe<br></td></tr
><tr
id=sl_svn2_28><td>    <br></td></tr
><tr
id=sl_svn2_29><td>    my $t0 = [gettimeofday];<br></td></tr
><tr
id=sl_svn2_30><td>   <br></td></tr
><tr
id=sl_svn2_31><td>        <br></td></tr
><tr
id=sl_svn2_32><td>    #Build POST url and then POST!<br></td></tr
><tr
id=sl_svn2_33><td>    #my $base_url = &#39;http://www.hursk.com/password/file/line/&#39;;<br></td></tr
><tr
id=sl_svn2_34><td>	my $base_url = &#39;http://www.hursk.com/password/file/line/&#39;;<br></td></tr
><tr
id=sl_svn2_35><td>    my $url = $base_url . $line;    <br></td></tr
><tr
id=sl_svn2_36><td>    $i = _post_line( $url, $i );<br></td></tr
><tr
id=sl_svn2_37><td>    <br></td></tr
><tr
id=sl_svn2_38><td>    my $time_interval = tv_interval( $t0 );<br></td></tr
><tr
id=sl_svn2_39><td>    print STDERR &quot;Request took $time_interval\n&quot;;<br></td></tr
><tr
id=sl_svn2_40><td>}<br></td></tr
><tr
id=sl_svn2_41><td><br></td></tr
><tr
id=sl_svn2_42><td><br></td></tr
><tr
id=sl_svn2_43><td>sub _post_line {<br></td></tr
><tr
id=sl_svn2_44><td>    my ($url, $i) = @_;<br></td></tr
><tr
id=sl_svn2_45><td>    <br></td></tr
><tr
id=sl_svn2_46><td>    my $ua = LWP::UserAgent-&gt;new();<br></td></tr
><tr
id=sl_svn2_47><td>    $ua-&gt;timeout(10);<br></td></tr
><tr
id=sl_svn2_48><td>    my $response = $ua-&gt;get($url);#POST!<br></td></tr
><tr
id=sl_svn2_49><td>    if ($response-&gt;is_success) {<br></td></tr
><tr
id=sl_svn2_50><td>        my $content = $response-&gt;decoded_content;<br></td></tr
><tr
id=sl_svn2_51><td>        <br></td></tr
><tr
id=sl_svn2_52><td>        open FH, &quot;&gt;&quot;, &quot;output_$i.xml&quot;;<br></td></tr
><tr
id=sl_svn2_53><td>        print FH $content; close FH;<br></td></tr
><tr
id=sl_svn2_54><td>        $i++;<br></td></tr
><tr
id=sl_svn2_55><td>        <br></td></tr
><tr
id=sl_svn2_56><td>        #my $t = XML::Twig::XPath-&gt;new;<br></td></tr
><tr
id=sl_svn2_57><td>        #$t-&gt;safe_parse($content);<br></td></tr
><tr
id=sl_svn2_58><td>        #my $HTTP_code = $t-&gt;findvalue(&#39;/password_cracker/request/HTTP_code&#39;);<br></td></tr
><tr
id=sl_svn2_59><td>        #my $HTTP_status = $t-&gt;findvalue(&#39;/password_cracker/request/HTTP_status&#39;);<br></td></tr
><tr
id=sl_svn2_60><td>        ##If we get a busy status (503 Service Unavailable)<br></td></tr
><tr
id=sl_svn2_61><td>        ##then sleep and try again later.<br></td></tr
><tr
id=sl_svn2_62><td>        #<br></td></tr
><tr
id=sl_svn2_63><td>        #if ($HTTP_code and $HTTP_code eq &#39;503&#39;){<br></td></tr
><tr
id=sl_svn2_64><td>        #    warn &quot;Sleeping because got HTTP_code 503\n&quot;;<br></td></tr
><tr
id=sl_svn2_65><td>        #    sleep 5;<br></td></tr
><tr
id=sl_svn2_66><td>        #    _post_line($url);<br></td></tr
><tr
id=sl_svn2_67><td>        #}<br></td></tr
><tr
id=sl_svn2_68><td>    }<br></td></tr
><tr
id=sl_svn2_69><td>    else {<br></td></tr
><tr
id=sl_svn2_70><td>        die $response-&gt;status_line.&quot;\n&quot;;<br></td></tr
><tr
id=sl_svn2_71><td>    }<br></td></tr
><tr
id=sl_svn2_72><td>    <br></td></tr
><tr
id=sl_svn2_73><td>    return $i<br></td></tr
><tr
id=sl_svn2_74><td>}<br></td></tr
><tr
id=sl_svn2_75><td><br></td></tr
><tr
id=sl_svn2_76><td><br></td></tr
><tr
id=sl_svn2_77><td><br></td></tr
><tr
id=sl_svn2_78><td><br></td></tr
><tr
id=sl_svn2_79><td>sub _urlsafe_b64encode {<br></td></tr
><tr
id=sl_svn2_80><td>    my $t0 = [gettimeofday];<br></td></tr
><tr
id=sl_svn2_81><td>    my $line = shift or do {<br></td></tr
><tr
id=sl_svn2_82><td>        die &quot;line was not passed to _urlsafe_b64encode&quot;;<br></td></tr
><tr
id=sl_svn2_83><td>        return 0<br></td></tr
><tr
id=sl_svn2_84><td>    };    <br></td></tr
><tr
id=sl_svn2_85><td>    <br></td></tr
><tr
id=sl_svn2_86><td>    #The below URL-safe base64 decoding code is credited to the following:<br></td></tr
><tr
id=sl_svn2_87><td>    #http://search.cpan.org/~kazuho/MIME-Base64-URLSafe-0.01/lib/MIME/Base64/URLSafe.pm<br></td></tr
><tr
id=sl_svn2_88><td>    ####################################################################################<br></td></tr
><tr
id=sl_svn2_89><td>    my $data = encode_base64($line, &#39;&#39;);<br></td></tr
><tr
id=sl_svn2_90><td>    $data =~ tr|+/=|\-_|d;<br></td></tr
><tr
id=sl_svn2_91><td>    ####################################################################################<br></td></tr
><tr
id=sl_svn2_92><td>    <br></td></tr
><tr
id=sl_svn2_93><td>    return $data;<br></td></tr
><tr
id=sl_svn2_94><td>}<br></td></tr
><tr
id=sl_svn2_95><td><br></td></tr
><tr
id=sl_svn2_96><td>sub _urlsafe_b64decode {<br></td></tr
><tr
id=sl_svn2_97><td>    my $line = shift or die &quot;no line&quot;;<br></td></tr
><tr
id=sl_svn2_98><td>    <br></td></tr
><tr
id=sl_svn2_99><td>    <br></td></tr
><tr
id=sl_svn2_100><td>    #The below URL-safe base64 decoding code is credited to the following:<br></td></tr
><tr
id=sl_svn2_101><td>    #http://search.cpan.org/~kazuho/MIME-Base64-URLSafe-0.01/lib/MIME/Base64/URLSafe.pm<br></td></tr
><tr
id=sl_svn2_102><td>    ####################################################################################<br></td></tr
><tr
id=sl_svn2_103><td>    # +/ should not be handled, so convert them to invalid chars<br></td></tr
><tr
id=sl_svn2_104><td>    # also, remove spaces (\t..\r and SP) so as to calc padding len<br></td></tr
><tr
id=sl_svn2_105><td>    $line =~ tr|\-_\t-\x0d |+/|d;<br></td></tr
><tr
id=sl_svn2_106><td>    my $mod4 = length($line) % 4;<br></td></tr
><tr
id=sl_svn2_107><td>    if ($mod4) {<br></td></tr
><tr
id=sl_svn2_108><td>	$line .= substr(&#39;====&#39;, $mod4);<br></td></tr
><tr
id=sl_svn2_109><td>    }<br></td></tr
><tr
id=sl_svn2_110><td>    ####################################################################################<br></td></tr
><tr
id=sl_svn2_111><td>    <br></td></tr
><tr
id=sl_svn2_112><td>    return decode_base64($line)<br></td></tr
><tr
id=sl_svn2_113><td>}<br></td></tr
></table></pre>

<pre class="prettyprint"><table width="100%"><tr class="cursor_hidden"><td></td></tr></table></pre>
</td>
</tr></table>



 <div id="log">
 <div style="text-align:right">
 <a class="ifCollapse" href="#" onclick="_toggleMeta('passwdcrack', this)">Show details</a>
 <a class="ifExpand" href="#" onclick="_toggleMeta('passwdcrack', this)">Hide details</a>
 </div>
 <div class="ifExpand">
 
 <div class="pmeta_bubble_bg" style="border:1px solid white">
 <div class="round4"></div>
 <div class="round2"></div>
 <div class="round1"></div>
 <div class="box-inner">
 <div id="changelog">
 <p>Change log</p>
 <div>
 <a href="/p/passwdcrack/source/detail?spec=svn2&r=2">r2</a>
 by seth.viebrock
 on Today (8 minutes ago)
 &nbsp; <a href="/p/passwdcrack/source/diff?spec=svn2&r=2&amp;format=side&amp;path=/trunk/test/test_script.pl&amp;old_path=/trunk/test/test_script.pl&amp;old=0">Diff</a>
 </div>
 <pre>first commit</pre>
 </div>
 
 
 
 
 
 
 <script type="text/javascript">
 var detail_url = '/p/passwdcrack/source/detail?r=2&spec=svn2';
 var publish_url = '/p/passwdcrack/source/detail?r=2&spec=svn2#publish';
 // describe the paths of this revision in javascript.
 var changed_paths = [];
 var changed_urls = [];
 
 changed_paths.push('/trunk');
 changed_urls.push('/p/passwdcrack/source/browse/trunk?r=2&spec=svn2');
 
 
 changed_paths.push('/trunk/Changes');
 changed_urls.push('/p/passwdcrack/source/browse/trunk/Changes?r=2&spec=svn2');
 
 
 changed_paths.push('/trunk/Makefile.PL');
 changed_urls.push('/p/passwdcrack/source/browse/trunk/Makefile.PL?r=2&spec=svn2');
 
 
 changed_paths.push('/trunk/README');
 changed_urls.push('/p/passwdcrack/source/browse/trunk/README?r=2&spec=svn2');
 
 
 changed_paths.push('/trunk/db_config.ini');
 changed_urls.push('/p/passwdcrack/source/browse/trunk/db_config.ini?r=2&spec=svn2');
 
 
 changed_paths.push('/trunk/lib');
 changed_urls.push('/p/passwdcrack/source/browse/trunk/lib?r=2&spec=svn2');
 
 
 changed_paths.push('/trunk/lib/FreeBSD_ports_list.txt');
 changed_urls.push('/p/passwdcrack/source/browse/trunk/lib/FreeBSD_ports_list.txt?r=2&spec=svn2');
 
 
 changed_paths.push('/trunk/lib/password_rest_service');
 changed_urls.push('/p/passwdcrack/source/browse/trunk/lib/password_rest_service?r=2&spec=svn2');
 
 
 changed_paths.push('/trunk/lib/password_rest_service.pm');
 changed_urls.push('/p/passwdcrack/source/browse/trunk/lib/password_rest_service.pm?r=2&spec=svn2');
 
 
 changed_paths.push('/trunk/lib/password_rest_service/Controller');
 changed_urls.push('/p/passwdcrack/source/browse/trunk/lib/password_rest_service/Controller?r=2&spec=svn2');
 
 
 changed_paths.push('/trunk/lib/password_rest_service/Controller/File.pm');
 changed_urls.push('/p/passwdcrack/source/browse/trunk/lib/password_rest_service/Controller/File.pm?r=2&spec=svn2');
 
 
 changed_paths.push('/trunk/lib/password_rest_service/Controller/Root.pm');
 changed_urls.push('/p/passwdcrack/source/browse/trunk/lib/password_rest_service/Controller/Root.pm?r=2&spec=svn2');
 
 
 changed_paths.push('/trunk/lib/password_rest_service/Model');
 changed_urls.push('/p/passwdcrack/source/browse/trunk/lib/password_rest_service/Model?r=2&spec=svn2');
 
 
 changed_paths.push('/trunk/lib/password_rest_service/Model/password_rest_service.pm');
 changed_urls.push('/p/passwdcrack/source/browse/trunk/lib/password_rest_service/Model/password_rest_service.pm?r=2&spec=svn2');
 
 
 changed_paths.push('/trunk/lib/password_rest_service/Schema');
 changed_urls.push('/p/passwdcrack/source/browse/trunk/lib/password_rest_service/Schema?r=2&spec=svn2');
 
 
 changed_paths.push('/trunk/lib/password_rest_service/Schema/password_rest_service');
 changed_urls.push('/p/passwdcrack/source/browse/trunk/lib/password_rest_service/Schema/password_rest_service?r=2&spec=svn2');
 
 
 changed_paths.push('/trunk/lib/password_rest_service/Schema/password_rest_service.pm');
 changed_urls.push('/p/passwdcrack/source/browse/trunk/lib/password_rest_service/Schema/password_rest_service.pm?r=2&spec=svn2');
 
 
 changed_paths.push('/trunk/lib/password_rest_service/Schema/password_rest_service/Hashes.pm');
 changed_urls.push('/p/passwdcrack/source/browse/trunk/lib/password_rest_service/Schema/password_rest_service/Hashes.pm?r=2&spec=svn2');
 
 
 changed_paths.push('/trunk/lib/password_rest_service/Schema/password_rest_service/PasswordResults.pm');
 changed_urls.push('/p/passwdcrack/source/browse/trunk/lib/password_rest_service/Schema/password_rest_service/PasswordResults.pm?r=2&spec=svn2');
 
 
 changed_paths.push('/trunk/lib/password_rest_service/Schema/password_rest_service/SharedVars.pm');
 changed_urls.push('/p/passwdcrack/source/browse/trunk/lib/password_rest_service/Schema/password_rest_service/SharedVars.pm?r=2&spec=svn2');
 
 
 changed_paths.push('/trunk/lib/password_rest_service/Schema/password_rest_service/UploadedPasswordFiles.pm');
 changed_urls.push('/p/passwdcrack/source/browse/trunk/lib/password_rest_service/Schema/password_rest_service/UploadedPasswordFiles.pm?r=2&spec=svn2');
 
 
 changed_paths.push('/trunk/lib/password_rest_service/Schema/password_rest_service/UserProcesses.pm');
 changed_urls.push('/p/passwdcrack/source/browse/trunk/lib/password_rest_service/Schema/password_rest_service/UserProcesses.pm?r=2&spec=svn2');
 
 
 changed_paths.push('/trunk/lib/password_rest_service/Schema/password_rest_service/Users.pm');
 changed_urls.push('/p/passwdcrack/source/browse/trunk/lib/password_rest_service/Schema/password_rest_service/Users.pm?r=2&spec=svn2');
 
 
 changed_paths.push('/trunk/local_db_config.ini');
 changed_urls.push('/p/passwdcrack/source/browse/trunk/local_db_config.ini?r=2&spec=svn2');
 
 
 changed_paths.push('/trunk/password_rest_service.conf');
 changed_urls.push('/p/passwdcrack/source/browse/trunk/password_rest_service.conf?r=2&spec=svn2');
 
 
 changed_paths.push('/trunk/password_rest_service.kpf');
 changed_urls.push('/p/passwdcrack/source/browse/trunk/password_rest_service.kpf?r=2&spec=svn2');
 
 
 changed_paths.push('/trunk/root');
 changed_urls.push('/p/passwdcrack/source/browse/trunk/root?r=2&spec=svn2');
 
 
 changed_paths.push('/trunk/root/favicon.ico');
 changed_urls.push('/p/passwdcrack/source/browse/trunk/root/favicon.ico?r=2&spec=svn2');
 
 
 changed_paths.push('/trunk/root/lib');
 changed_urls.push('/p/passwdcrack/source/browse/trunk/root/lib?r=2&spec=svn2');
 
 
 changed_paths.push('/trunk/root/lib/config');
 changed_urls.push('/p/passwdcrack/source/browse/trunk/root/lib/config?r=2&spec=svn2');
 
 
 changed_paths.push('/trunk/root/lib/config/col');
 changed_urls.push('/p/passwdcrack/source/browse/trunk/root/lib/config/col?r=2&spec=svn2');
 
 
 changed_paths.push('/trunk/root/lib/config/main');
 changed_urls.push('/p/passwdcrack/source/browse/trunk/root/lib/config/main?r=2&spec=svn2');
 
 
 changed_paths.push('/trunk/root/lib/config/url');
 changed_urls.push('/p/passwdcrack/source/browse/trunk/root/lib/config/url?r=2&spec=svn2');
 
 
 changed_paths.push('/trunk/root/lib/site');
 changed_urls.push('/p/passwdcrack/source/browse/trunk/root/lib/site?r=2&spec=svn2');
 
 
 changed_paths.push('/trunk/root/lib/site/footer');
 changed_urls.push('/p/passwdcrack/source/browse/trunk/root/lib/site/footer?r=2&spec=svn2');
 
 
 changed_paths.push('/trunk/root/lib/site/header');
 changed_urls.push('/p/passwdcrack/source/browse/trunk/root/lib/site/header?r=2&spec=svn2');
 
 
 changed_paths.push('/trunk/root/lib/site/html');
 changed_urls.push('/p/passwdcrack/source/browse/trunk/root/lib/site/html?r=2&spec=svn2');
 
 
 changed_paths.push('/trunk/root/lib/site/layout');
 changed_urls.push('/p/passwdcrack/source/browse/trunk/root/lib/site/layout?r=2&spec=svn2');
 
 
 changed_paths.push('/trunk/root/lib/site/wrapper');
 changed_urls.push('/p/passwdcrack/source/browse/trunk/root/lib/site/wrapper?r=2&spec=svn2');
 
 
 changed_paths.push('/trunk/root/src');
 changed_urls.push('/p/passwdcrack/source/browse/trunk/root/src?r=2&spec=svn2');
 
 
 changed_paths.push('/trunk/root/src/error.tt2');
 changed_urls.push('/p/passwdcrack/source/browse/trunk/root/src/error.tt2?r=2&spec=svn2');
 
 
 changed_paths.push('/trunk/root/src/message.tt2');
 changed_urls.push('/p/passwdcrack/source/browse/trunk/root/src/message.tt2?r=2&spec=svn2');
 
 
 changed_paths.push('/trunk/root/src/ttsite.css');
 changed_urls.push('/p/passwdcrack/source/browse/trunk/root/src/ttsite.css?r=2&spec=svn2');
 
 
 changed_paths.push('/trunk/root/src/welcome.tt2');
 changed_urls.push('/p/passwdcrack/source/browse/trunk/root/src/welcome.tt2?r=2&spec=svn2');
 
 
 changed_paths.push('/trunk/root/static');
 changed_urls.push('/p/passwdcrack/source/browse/trunk/root/static?r=2&spec=svn2');
 
 
 changed_paths.push('/trunk/root/static/images');
 changed_urls.push('/p/passwdcrack/source/browse/trunk/root/static/images?r=2&spec=svn2');
 
 
 changed_paths.push('/trunk/root/static/images/btn_120x50_built.png');
 changed_urls.push('/p/passwdcrack/source/browse/trunk/root/static/images/btn_120x50_built.png?r=2&spec=svn2');
 
 
 changed_paths.push('/trunk/root/static/images/btn_120x50_built_shadow.png');
 changed_urls.push('/p/passwdcrack/source/browse/trunk/root/static/images/btn_120x50_built_shadow.png?r=2&spec=svn2');
 
 
 changed_paths.push('/trunk/root/static/images/btn_120x50_powered.png');
 changed_urls.push('/p/passwdcrack/source/browse/trunk/root/static/images/btn_120x50_powered.png?r=2&spec=svn2');
 
 
 changed_paths.push('/trunk/root/static/images/btn_120x50_powered_shadow.png');
 changed_urls.push('/p/passwdcrack/source/browse/trunk/root/static/images/btn_120x50_powered_shadow.png?r=2&spec=svn2');
 
 
 function getCurrentPageIndex() {
 for (var i = 0; i < changed_paths.length; i++) {
 if (selected_path == changed_paths[i]) {
 return i;
 }
 }
 }
 function getNextPage() {
 var i = getCurrentPageIndex();
 if (i < changed_paths.length - 1) {
 return changed_urls[i + 1];
 }
 return null;
 }
 function getPreviousPage() {
 var i = getCurrentPageIndex();
 if (i > 0) {
 return changed_urls[i - 1];
 }
 return null;
 }
 function gotoNextPage() {
 var page = getNextPage();
 if (!page) {
 page = detail_url;
 }
 window.location = page;
 }
 function gotoPreviousPage() {
 var page = getPreviousPage();
 if (!page) {
 page = detail_url;
 }
 window.location = page;
 }
 function gotoDetailPage() {
 window.location = detail_url;
 }
 function gotoPublishPage() {
 window.location = publish_url;
 }
</script>
 
 <style type="text/css">
 #review_nav {
 border-top: 3px solid white;
 padding-top: 6px;
 margin-top: 1em;
 }
 #review_nav td {
 vertical-align: middle;
 }
 #review_nav select {
 margin: .5em 0;
 }
 </style>
 <div id="review_nav">
 <table><tr><td>Go to:&nbsp;</td><td>
 <select name="files_in_rev" onchange="window.location=this.value">
 
 <option value="/p/passwdcrack/source/browse/trunk?r=2&amp;spec=svn2"
 
 >/trunk</option>
 
 <option value="/p/passwdcrack/source/browse/trunk/Changes?r=2&amp;spec=svn2"
 
 >/trunk/Changes</option>
 
 <option value="/p/passwdcrack/source/browse/trunk/Makefile.PL?r=2&amp;spec=svn2"
 
 >/trunk/Makefile.PL</option>
 
 <option value="/p/passwdcrack/source/browse/trunk/README?r=2&amp;spec=svn2"
 
 >/trunk/README</option>
 
 <option value="/p/passwdcrack/source/browse/trunk/db_config.ini?r=2&amp;spec=svn2"
 
 >/trunk/db_config.ini</option>
 
 <option value="/p/passwdcrack/source/browse/trunk/lib?r=2&amp;spec=svn2"
 
 >/trunk/lib</option>
 
 <option value="/p/passwdcrack/source/browse/trunk/lib/FreeBSD_ports_list.txt?r=2&amp;spec=svn2"
 
 >/trunk/lib/FreeBSD_ports_list.txt</option>
 
 <option value="/p/passwdcrack/source/browse/trunk/lib/password_rest_service?r=2&amp;spec=svn2"
 
 >/trunk/lib/password_rest_service</option>
 
 <option value="/p/passwdcrack/source/browse/trunk/lib/password_rest_service.pm?r=2&amp;spec=svn2"
 
 >/trunk/lib/password_rest_service.pm</option>
 
 <option value="/p/passwdcrack/source/browse/trunk/lib/password_rest_service/Controller?r=2&amp;spec=svn2"
 
 >...password_rest_service/Controller</option>
 
 <option value="/p/passwdcrack/source/browse/trunk/lib/password_rest_service/Controller/File.pm?r=2&amp;spec=svn2"
 
 >..._rest_service/Controller/File.pm</option>
 
 <option value="/p/passwdcrack/source/browse/trunk/lib/password_rest_service/Controller/Root.pm?r=2&amp;spec=svn2"
 
 >..._rest_service/Controller/Root.pm</option>
 
 <option value="/p/passwdcrack/source/browse/trunk/lib/password_rest_service/Model?r=2&amp;spec=svn2"
 
 >.../lib/password_rest_service/Model</option>
 
 <option value="/p/passwdcrack/source/browse/trunk/lib/password_rest_service/Model/password_rest_service.pm?r=2&amp;spec=svn2"
 
 >...e/Model/password_rest_service.pm</option>
 
 <option value="/p/passwdcrack/source/browse/trunk/lib/password_rest_service/Schema?r=2&amp;spec=svn2"
 
 >...lib/password_rest_service/Schema</option>
 
 <option value="/p/passwdcrack/source/browse/trunk/lib/password_rest_service/Schema/password_rest_service?r=2&amp;spec=svn2"
 
 >...ice/Schema/password_rest_service</option>
 
 <option value="/p/passwdcrack/source/browse/trunk/lib/password_rest_service/Schema/password_rest_service.pm?r=2&amp;spec=svn2"
 
 >.../Schema/password_rest_service.pm</option>
 
 <option value="/p/passwdcrack/source/browse/trunk/lib/password_rest_service/Schema/password_rest_service/Hashes.pm?r=2&amp;spec=svn2"
 
 >.../password_rest_service/Hashes.pm</option>
 
 <option value="/p/passwdcrack/source/browse/trunk/lib/password_rest_service/Schema/password_rest_service/PasswordResults.pm?r=2&amp;spec=svn2"
 
 >..._rest_service/PasswordResults.pm</option>
 
 <option value="/p/passwdcrack/source/browse/trunk/lib/password_rest_service/Schema/password_rest_service/SharedVars.pm?r=2&amp;spec=svn2"
 
 >...sword_rest_service/SharedVars.pm</option>
 
 <option value="/p/passwdcrack/source/browse/trunk/lib/password_rest_service/Schema/password_rest_service/UploadedPasswordFiles.pm?r=2&amp;spec=svn2"
 
 >...service/UploadedPasswordFiles.pm</option>
 
 <option value="/p/passwdcrack/source/browse/trunk/lib/password_rest_service/Schema/password_rest_service/UserProcesses.pm?r=2&amp;spec=svn2"
 
 >...rd_rest_service/UserProcesses.pm</option>
 
 <option value="/p/passwdcrack/source/browse/trunk/lib/password_rest_service/Schema/password_rest_service/Users.pm?r=2&amp;spec=svn2"
 
 >...a/password_rest_service/Users.pm</option>
 
 <option value="/p/passwdcrack/source/browse/trunk/local_db_config.ini?r=2&amp;spec=svn2"
 
 >/trunk/local_db_config.ini</option>
 
 <option value="/p/passwdcrack/source/browse/trunk/password_rest_service.conf?r=2&amp;spec=svn2"
 
 >/trunk/password_rest_service.conf</option>
 
 <option value="/p/passwdcrack/source/browse/trunk/password_rest_service.kpf?r=2&amp;spec=svn2"
 
 >/trunk/password_rest_service.kpf</option>
 
 <option value="/p/passwdcrack/source/browse/trunk/root?r=2&amp;spec=svn2"
 
 >/trunk/root</option>
 
 <option value="/p/passwdcrack/source/browse/trunk/root/favicon.ico?r=2&amp;spec=svn2"
 
 >/trunk/root/favicon.ico</option>
 
 <option value="/p/passwdcrack/source/browse/trunk/root/lib?r=2&amp;spec=svn2"
 
 >/trunk/root/lib</option>
 
 <option value="/p/passwdcrack/source/browse/trunk/root/lib/config?r=2&amp;spec=svn2"
 
 >/trunk/root/lib/config</option>
 
 <option value="/p/passwdcrack/source/browse/trunk/root/lib/config/col?r=2&amp;spec=svn2"
 
 >/trunk/root/lib/config/col</option>
 
 <option value="/p/passwdcrack/source/browse/trunk/root/lib/config/main?r=2&amp;spec=svn2"
 
 >/trunk/root/lib/config/main</option>
 
 <option value="/p/passwdcrack/source/browse/trunk/root/lib/config/url?r=2&amp;spec=svn2"
 
 >/trunk/root/lib/config/url</option>
 
 <option value="/p/passwdcrack/source/browse/trunk/root/lib/site?r=2&amp;spec=svn2"
 
 >/trunk/root/lib/site</option>
 
 <option value="/p/passwdcrack/source/browse/trunk/root/lib/site/footer?r=2&amp;spec=svn2"
 
 >/trunk/root/lib/site/footer</option>
 
 <option value="/p/passwdcrack/source/browse/trunk/root/lib/site/header?r=2&amp;spec=svn2"
 
 >/trunk/root/lib/site/header</option>
 
 <option value="/p/passwdcrack/source/browse/trunk/root/lib/site/html?r=2&amp;spec=svn2"
 
 >/trunk/root/lib/site/html</option>
 
 <option value="/p/passwdcrack/source/browse/trunk/root/lib/site/layout?r=2&amp;spec=svn2"
 
 >/trunk/root/lib/site/layout</option>
 
 <option value="/p/passwdcrack/source/browse/trunk/root/lib/site/wrapper?r=2&amp;spec=svn2"
 
 >/trunk/root/lib/site/wrapper</option>
 
 <option value="/p/passwdcrack/source/browse/trunk/root/src?r=2&amp;spec=svn2"
 
 >/trunk/root/src</option>
 
 <option value="/p/passwdcrack/source/browse/trunk/root/src/error.tt2?r=2&amp;spec=svn2"
 
 >/trunk/root/src/error.tt2</option>
 
 <option value="/p/passwdcrack/source/browse/trunk/root/src/message.tt2?r=2&amp;spec=svn2"
 
 >/trunk/root/src/message.tt2</option>
 
 <option value="/p/passwdcrack/source/browse/trunk/root/src/ttsite.css?r=2&amp;spec=svn2"
 
 >/trunk/root/src/ttsite.css</option>
 
 <option value="/p/passwdcrack/source/browse/trunk/root/src/welcome.tt2?r=2&amp;spec=svn2"
 
 >/trunk/root/src/welcome.tt2</option>
 
 <option value="/p/passwdcrack/source/browse/trunk/root/static?r=2&amp;spec=svn2"
 
 >/trunk/root/static</option>
 
 <option value="/p/passwdcrack/source/browse/trunk/root/static/images?r=2&amp;spec=svn2"
 
 >/trunk/root/static/images</option>
 
 <option value="/p/passwdcrack/source/browse/trunk/root/static/images/btn_120x50_built.png?r=2&amp;spec=svn2"
 
 >...atic/images/btn_120x50_built.png</option>
 
 <option value="/p/passwdcrack/source/browse/trunk/root/static/images/btn_120x50_built_shadow.png?r=2&amp;spec=svn2"
 
 >...ages/btn_120x50_built_shadow.png</option>
 
 <option value="/p/passwdcrack/source/browse/trunk/root/static/images/btn_120x50_powered.png?r=2&amp;spec=svn2"
 
 >...ic/images/btn_120x50_powered.png</option>
 
 <option value="/p/passwdcrack/source/browse/trunk/root/static/images/btn_120x50_powered_shadow.png?r=2&amp;spec=svn2"
 
 >...es/btn_120x50_powered_shadow.png</option>
 
 </select>
 </td></tr></table>
 
 
 
 <div id="review_instr" class="closed">
 <a class="ifOpened" href="/p/passwdcrack/source/detail?r=2&spec=svn2#publish">Publish your comments</a>
 <div class="ifClosed">Double click a line to add a comment</div>
 </div>
 
 </div>
 
 
 </div>
 <div class="round1"></div>
 <div class="round2"></div>
 <div class="round4"></div>
 </div>
 <div class="pmeta_bubble_bg" style="border:1px solid white">
 <div class="round4"></div>
 <div class="round2"></div>
 <div class="round1"></div>
 <div class="box-inner">
 <div id="older_bubble">
 <p>Older revisions</p>
 
 <a href="/p/passwdcrack/source/list?path=/trunk/test/test_script.pl&start=2">All revisions of this file</a>
 </div>
 </div>
 <div class="round1"></div>
 <div class="round2"></div>
 <div class="round4"></div>
 </div>
 <div class="pmeta_bubble_bg" style="border:1px solid white">
 <div class="round4"></div>
 <div class="round2"></div>
 <div class="round1"></div>
 <div class="box-inner">
 <div id="fileinfo_bubble">
 <p>File info</p>
 
 <div>Size: 3272 bytes,
 113 lines</div>
 
 <div><a href="http://passwdcrack.googlecode.com/svn-history/r2/trunk/test/test_script.pl">View raw file</a></div>
 </div>
 
 </div>
 <div class="round1"></div>
 <div class="round2"></div>
 <div class="round4"></div>
 </div>
 </div>
 </div>


</div>
</div>

 <script src="http://www.gstatic.com/codesite/ph/8517283022148688843/js/prettify/prettify.js"></script>

<script type="text/javascript">prettyPrint();</script>

<script src="http://www.gstatic.com/codesite/ph/8517283022148688843/js/source_file_scripts_20080115.js"></script>

 <style type="text/css">
 
 .nocursor, .nocursor td, .cursor_hidden, .cursor_hidden td {
 background-color: white;
 height: 2px;
 }
 .cursor, .cursor td {
 background-color: darkblue;
 height: 2px;
 display: '';
 }
 </style>
 <script type="text/javascript" src="http://kibbles.googlecode.com/files/kibbles-1.3.0.comp.js"></script>
 <script type="text/javascript">
 var lastStop = null;
 var initilized = false;
 
 function updateCursor(next, prev) {
 if (prev && prev.element) {
 prev.element.className = 'cursor_hidden';
 }
 if (next && next.element) {
 next.element.className = 'cursor';
 lastStop = next.index;
 }
 }
 
 function pubRevealed(data) {
 updateCursorForCell(data.cellId, 'cursor_hidden');
 if (initilized) {
 reloadCursors();
 }
 }
 
 function draftRevealed(data) {
 updateCursorForCell(data.cellId, 'cursor_hidden');
 if (initilized) {
 reloadCursors();
 }
 }
 
 function draftDestroyed(data) {
 updateCursorForCell(data.cellId, 'nocursor');
 if (initilized) {
 reloadCursors();
 }
 }
 function reloadCursors() {
 kibbles.skipper.reset();
 loadCursors();
 if (lastStop != null) {
 kibbles.skipper.setCurrentStop(lastStop);
 }
 }
 // possibly the simplest way to insert any newly added comments
 // is to update the class of the corresponding cursor row,
 // then refresh the entire list of rows.
 function updateCursorForCell(cellId, className) {
 var cell = document.getElementById(cellId);
 // we have to go two rows back to find the cursor location
 var row = getPreviousElement(cell.parentNode);
 row.className = className;
 }
 // returns the previous element, ignores text nodes.
 function getPreviousElement(e) {
 var element = e.previousSibling;
 if (element.nodeType == 3) {
 element = element.previousSibling;
 }
 if (element && element.tagName) {
 return element;
 }
 }
 function findCursorRows() {
 var rows = [];
 var td = document.getElementById('lines'); 
 for (var i = 0; i < td.childNodes.length; i++) {
 var pre = td.childNodes[i]; 
 if (pre.tagName && pre.tagName == 'PRE') {
 var table = pre.childNodes[0];
 var ts = table.childNodes[0]; 
 for (var j = 0; j < ts.childNodes.length; j++) {
 var tr = ts.childNodes[j];
 if (tr.className.indexOf("cursor") == 0) {
 rows.push(tr);
 }
 }
 }
 }
 return rows;
 }
 function loadCursors() {
 // register our elements with skipper
 var elements = findCursorRows();
 for (var i = 0; i < elements.length; i++) {
 var element = elements[i]; 
 element.className = 'cursor_hidden';
 kibbles.skipper.append(element);
 }
 }
 function toggleComments() {
 CR_toggleCommentDisplay();
 reloadCursors();
 }
 function keysOnLoadHandler() {
 // setup skipper
 kibbles.skipper.addStopListener(
 kibbles.skipper.LISTENER_TYPE.PRE, updateCursor);
 // Set the 'offset' option to return the middle of the client area
 // an option can be a static value, or a callback
 kibbles.skipper.setOption('padding_top', 50);
 // Set the 'offset' option to return the middle of the client area
 // an option can be a static value, or a callback
 kibbles.skipper.setOption('padding_bottom', 100);
 // Register our keys
 kibbles.skipper.addFwdKey("n");
 kibbles.skipper.addRevKey("p");
 kibbles.keys.addKeyPressListener(
 'u', function() { window.location = detail_url; });
 kibbles.keys.addKeyPressListener(
 'r', function() { window.location = detail_url + '#publish'; });
 
 kibbles.keys.addKeyPressListener('j', gotoNextPage);
 kibbles.keys.addKeyPressListener('k', gotoPreviousPage);
 
 
 kibbles.keys.addKeyPressListener('h', toggleComments);
 
 }
 window.onload = function() {keysOnLoadHandler();};
 </script>


<!-- code review support -->
<script src="http://www.gstatic.com/codesite/ph/8517283022148688843/js/code_review_scripts_20081023.js"></script>
<script type="text/javascript">
 
 // the comment form template
 var form = '<div class="draft"><div class="header"><span class="title">Draft comment:</span></div>' +
 '<div class="body"><form onsubmit="return false;"><textarea id="$ID">$BODY</textarea><br>$ACTIONS</form></div>' +
 '</div>';
 // the comment "plate" template used for both draft and published comment "plates".
 var draft_comment = '<div class="draft" ondblclick="$ONDBLCLICK">' +
 '<div class="header"><span class="title">Draft comment:</span><span class="actions">$ACTIONS</span></div>' +
 '<pre id="$ID" class="body">$BODY</pre>' +
 '</div>';
 var published_comment = '<div class="published">' +
 '<div class="header"><span class="title"><a href="$PROFILE_URL">$AUTHOR:</a></span><div>' +
 '<pre id="$ID" class="body">$BODY</pre>' +
 '</div>';

 function showPublishInstructions() {
 var element = document.getElementById('review_instr');
 if (element) {
 element.className = 'opened';
 }
 }
 function revsOnLoadHandler() {
 // register our source container with the commenting code
 _setup('passwdcrack', 'svn2', '/trunk/test/test_script.pl', 'c608b743be1bb62f4e0fcd50f784d0a9',
 CR_BrowseIntegrationFactory);
 // register our hidden ui elements with the code commenting code ui builder.
 CR_registerLayoutElement('form', form);
 CR_registerLayoutElement('draft_comment', draft_comment);
 CR_registerLayoutElement('published_comment', published_comment);
 
 // register our source container with the commenting code
 // in this case we're registering the container and the revison
 // associated with the contianer which may be the primary revision
 // or may be a previous revision against which the primary revision
 // of the file is being compared.
 CR_registerSourceContainer(document.getElementById('lines'), 'svn2');
 
 CR_registerActivityListener(CR_ACTIVITY_TYPE.REVEAL_DRAFT_PLATE, showPublishInstructions);
 
 CR_registerActivityListener(CR_ACTIVITY_TYPE.REVEAL_PUB_PLATE, pubRevealed);
 CR_registerActivityListener(CR_ACTIVITY_TYPE.REVEAL_DRAFT_PLATE, draftRevealed);
 CR_registerActivityListener(CR_ACTIVITY_TYPE.DISCARD_DRAFT_COMMENT, draftDestroyed);
 
 
 
 
 
 
 
 
 
 var initilized = true;
 reloadCursors();
 }
 window.onload = function() {keysOnLoadHandler(); revsOnLoadHandler();};
</script>

<script type="text/javascript" src="http://www.gstatic.com/codesite/ph/8517283022148688843/js/dit_scripts_20081013.js"></script>

 
 <script type="text/javascript" src="http://www.gstatic.com/codesite/ph/8517283022148688843/js/core_scripts_20081103.js"></script>
 
 
 
 </div>
<div id="footer" dir="ltr">
 
 <div class="text">
 
 &copy;2008 Google -
 <a href="/">Code Home</a> -
 <a href="/tos.html">Terms of Service</a> -
 <a href="http://www.google.com/privacy.html">Privacy Policy</a> -
 <a href="/more/">Site Directory</a>
 
 </div>
</div>
<script type="text/javascript">
/**
 * Reports analytics.
 * It checks for the analytics functionality (window._gat) every 100ms
 * until the analytics script is fully loaded in order to invoke siteTracker.
 */
function _CS_reportAnalytics() {
 window.setTimeout(function() {
 if (window._gat) {
 var siteTracker = _gat._getTracker("UA-18071-1");
 siteTracker._initData();
 siteTracker._trackPageview();
 
 } else {
 _CS_reportAnalytics();
 }
 }, 100);
}
</script>

 
 


 
 </body>
</html>

